package com.caesar.exer;

/**
 * @author caesar
 * @date 2025/7/21
 * @Description:
 * @apiNote
 */
public class MyThread extends  Thread {
    @Override
    public void run() {
        // 线程要执行的任务:输出偶数
        for (int i = 2; i < 100; i+=2) {
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("偶数："+i);
        }
    }
}
